<!DOCTYPE html>
<html lang="en">

<head>
    <!-- BEGIN META -->
    {include file="public/meta"}
    <!-- END META -->

    <!-- BEGIN STYLESHEET-->
    {include file="public/css"}
    <!-- END STYLESHEET-->

    <title>
        {$current_menu['title']} - {$yun_config.title}
    </title>
</head>

<body>
<!-- BEGIN SECTION -->
<section id="container">
    <!-- BEGIN HEADER -->
    {include file="public/header"}
    <!-- END HEADER -->
    <!-- BEGIN SIDEBAR -->
    {include file="public/sidebar"}
    <!-- END SIDEBAR -->
    <!-- BEGIN MAIN CONTENT -->
    <section id="main-content">
        <!-- BEGIN WRAPPER  -->
        <section class="wrapper z-index-1">
            <!-- TOP MENU ROW  -->
            {include file="public/top_menu"}
            <!-- TOP MENU ROW  -->

            <!-- BEGIN ROW  -->
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel-bg">
                        <header class="panel-heading">
                            <span class="label label-primary">{$current_menu.title}</span>
                        </header>
                        <div class="panel-body">
                            <div class="form">
                                <form class="cmxform form-horizontal tasi-form" id="configForm" method="post" action="{:url('save')}" enctype="multipart/form-data">
                                    <div class="form-group">
                                        <label for="group" class="control-label col-sm-2">配置分组</label>
                                        <div class="col-sm-4">
                                            <select class="form-control" name="group" id="group">
                                                <option value="">--请选择配置项所属组--</option>
                                                {volist name="group_list" id="item"}
                                                <option value="{$item.id}">{$item.name}</option>
                                                {/volist}
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="title" class="control-label col-sm-2">配置标题</label>
                                        <div class="col-sm-4">
                                            <input class="form-control" id="title" name="title" type="text" value="">
                                        </div>
                                        <span class="help-block form-span-tip col-sm-6">*建议标题简短明确</span>
                                    </div>

                                    <div class="form-group">
                                        <label for="name" class="control-label col-sm-2">配置名称</label>
                                        <div class="col-sm-4">
                                            <input class="form-control" id="name" name="name" type="text" value="">
                                        </div>
                                        <span class="help-block form-span-tip col-sm-6">*建议大写字母，多个单词下划线隔开</span>
                                    </div>

                                    <div class="form-group">
                                        <label for="form_type" class="control-label col-sm-2">配置类型</label>
                                        <div class="col-sm-4">
                                            <select class="form-control" name="form_type" id="form_type">
                                                <option value="">--请选择配置类型--</option>
                                                {volist name="form_type" id="item"}
                                                <option value="{$item.value}">{$item.name}</option>
                                                {/volist}
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="value" class="control-label col-sm-2">配置值</label>
                                        <div class="col-sm-4">
                                            <input class="form-control" id="value" name="value" type="text" value="">
                                        </div>
                                        <span class="help-block form-span-tip col-sm-6">填写保证正确性</span>
                                    </div>

                                    <div class="form-group">
                                        <label for="options" class="control-label col-sm-2">配置项</label>
                                        <div class="col-sm-4">
                                            <textarea class="form-control" id="options" name="options" rows="5"></textarea>
                                        </div>
                                        <span class="help-block form-span-tip col-sm-6">如果是下拉等类型,需要配置该项，需要按照特定格式</span>
                                    </div>

                                    <div class="form-group">
                                        <label for="tip" class="control-label col-sm-2">配置说明</label>
                                        <div class="col-sm-4">
                                            <textarea class="form-control" id="tip" name="tip" rows="5"></textarea>
                                        </div>
                                        <span class="help-block form-span-tip col-sm-6">*对此配置项用处进行备注说明</span>
                                    </div>

                                    <div class="form-group">
                                        <input type="hidden" name="id" id="id" value="0">
                                        <div class="col-sm-offset-2 col-sm-10">
                                            <button class="btn btn-primary" type="submit">保存</button>
                                            <button class="btn btn-default" type="reset">重置</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
            <!-- END ROW  -->
        </section>
        <!-- END WRAPPER  -->
    </section>
    <!-- END MAIN CONTENT -->
    <!-- BEGIN FOOTER -->
    {include file="public/footer"}
    <!-- END FOOTER -->
</section>
<!-- END SECTION -->
<!-- BEGIN JS -->
{include file="public/js"}
<script src="__STATIC__/js/yunadmin/config.js"></script>
<!-- YunAdmin CONFIG JS -->
<!-- END JS -->
</body>

</html>